	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_greybus_register_driver        ## -- Begin function greybus_register_driver
	.p2align	4, 0x90
_greybus_register_driver:               ## @greybus_register_driver
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_greybus_disabled
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_4
LBB0_2:
	leaq	8(%r15), %rdi
	movq	_greybus_bus_type@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r15)
	movl	(%r15), %eax
	movl	%eax, 32(%r15)
	movq	_greybus_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r15)
	movq	_greybus_remove@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	%r12, 16(%r15)
	movq	%r14, 8(%r15)
	callq	_driver_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	xorl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_greybus_bus_type,4,2           ## @greybus_bus_type
	.comm	_greybus_probe,4,2              ## @greybus_probe
	.comm	_greybus_remove,4,2             ## @greybus_remove
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"registered new driver %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_greybus_register_driver        ; -- Begin function greybus_register_driver
	.p2align	2
_greybus_register_driver:               ; @greybus_register_driver
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_greybus_disabled
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _greybus_bus_type@GOTPAGE
Lloh4:
	ldr	x8, [x8, _greybus_bus_type@GOTPAGEOFF]
	str	x8, [x19, #40]
	ldr	w8, [x19]
	str	w8, [x19, #32]
Lloh5:
	adrp	x8, _greybus_probe@GOTPAGE
Lloh6:
	ldr	x8, [x8, _greybus_probe@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _greybus_remove@GOTPAGE
Lloh9:
	ldr	x9, [x9, _greybus_remove@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
	str	x21, [x19, #16]
	mov	x0, x19
	str	x20, [x0, #8]!
	bl	_driver_register
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w1, [x19]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_greybus_bus_type,4,2           ; @greybus_bus_type
	.comm	_greybus_probe,4,2              ; @greybus_probe
	.comm	_greybus_remove,4,2             ; @greybus_remove
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"registered new driver %s\n"

.subsections_via_symbols
