	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function greybus_uevent
_greybus_uevent:                        ## @greybus_uevent
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_is_gb_host_device
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_to_gb_host_device
LBB0_2:
	xorl	%r13d, %r13d
	jmp	LBB0_5
LBB0_3:
	movq	%rbx, %rdi
	callq	_is_gb_module
	testq	%rax, %rax
	je	LBB0_21
## %bb.4:
	movq	%rbx, %rdi
	callq	_to_gb_module
	movq	%rax, %r13
	movq	8(%rax), %rax
LBB0_5:
	xorl	%r12d, %r12d
LBB0_6:
	xorl	%r14d, %r14d
LBB0_7:
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_add_uevent_var
	testq	%rax, %rax
	je	LBB0_11
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_9:
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	testq	%r13, %r13
	je	LBB0_13
## %bb.12:
	movl	(%r13), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_add_uevent_var
	testq	%rax, %rax
	jne	LBB0_8
LBB0_13:
	testq	%r12, %r12
	je	LBB0_16
## %bb.14:
	movl	8(%r12), %edx
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_add_uevent_var
	testq	%rax, %rax
	jne	LBB0_8
## %bb.15:
	movl	(%r12), %ecx
	movl	4(%r12), %edx
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_add_uevent_var
	testq	%rax, %rax
	jne	LBB0_8
LBB0_16:
	testq	%r14, %r14
	je	LBB0_26
## %bb.17:
	movl	4(%r14), %edx
	leaq	L_.str.5(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_add_uevent_var
	testq	%rax, %rax
	jne	LBB0_8
## %bb.18:
	movl	(%r14), %edx
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_add_uevent_var
	testq	%rax, %rax
	je	LBB0_10
## %bb.19:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_20:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_21:
	movq	%rbx, %rdi
	callq	_is_gb_interface
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movq	%rbx, %rdi
	callq	_to_gb_interface
	movq	%rax, %r12
	movq	16(%rax), %rax
	jmp	LBB0_25
LBB0_23:
	movq	%rbx, %rdi
	callq	_is_gb_control
	testq	%rax, %rax
	je	LBB0_27
## %bb.24:
	movq	%rbx, %rdi
	callq	_to_gb_control
	movq	(%rax), %r12
	movq	16(%r12), %rax
LBB0_25:
	movq	24(%r12), %r13
	jmp	LBB0_6
LBB0_26:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_27:
	movq	%rbx, %rdi
	callq	_is_gb_bundle
	testq	%rax, %rax
	je	LBB0_29
## %bb.28:
	movq	%rbx, %rdi
	callq	_to_gb_bundle
	movq	%rax, %r14
	movq	8(%rax), %r12
	movq	16(%r12), %rax
	movq	24(%r12), %r13
	jmp	LBB0_7
LBB0_29:
	movq	%rbx, %rdi
	callq	_is_gb_svc
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:
	movq	%rbx, %rdi
	callq	_to_gb_svc
	movq	(%rax), %rax
	jmp	LBB0_2
LBB0_31:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_WARN
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"uevent for unknown greybus device \"type\"!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"BUS=%u"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"MODULE=%u"

L_.str.3:                               ## @.str.3
	.asciz	"INTERFACE=%u"

L_.str.4:                               ## @.str.4
	.asciz	"GREYBUS_ID=%08x/%08x"

L_.str.5:                               ## @.str.5
	.asciz	"BUNDLE=%u"

L_.str.6:                               ## @.str.6
	.asciz	"BUNDLE_CLASS=%02x"

	.no_dead_strip	_greybus_uevent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function greybus_uevent
_greybus_uevent:                        ; @greybus_uevent
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x20, x0
	bl	_is_gb_host_device
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_to_gb_host_device
	mov	x22, #0
	mov	x21, #0
	mov	x20, #0
	b	LBB0_11
LBB0_2:
	mov	x0, x20
	bl	_is_gb_module
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_to_gb_module
	mov	x22, x0
	mov	x21, #0
	mov	x20, #0
	ldr	x0, [x0, #8]
	b	LBB0_11
LBB0_4:
	mov	x0, x20
	bl	_is_gb_interface
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_to_gb_interface
	mov	x21, x0
	mov	x20, #0
	ldp	x0, x22, [x0, #16]
	b	LBB0_11
LBB0_6:
	mov	x0, x20
	bl	_is_gb_control
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_to_gb_control
	mov	x20, #0
	ldr	x21, [x0]
	b	LBB0_10
LBB0_8:
	mov	x0, x20
	bl	_is_gb_bundle
	cbz	x0, LBB0_24
; %bb.9:
	mov	x0, x20
	bl	_to_gb_bundle
	mov	x20, x0
	ldr	x21, [x0, #8]
LBB0_10:
	ldp	x0, x22, [x21, #16]
LBB0_11:
	ldr	w2, [x0]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_add_uevent_var
	cbz	x0, LBB0_15
LBB0_12:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_15:
	cbz	x22, LBB0_17
; %bb.16:
	ldr	w2, [x22]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_add_uevent_var
	cbnz	x0, LBB0_12
LBB0_17:
	cbz	x21, LBB0_20
; %bb.18:
	ldr	w2, [x21, #8]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_add_uevent_var
	cbnz	x0, LBB0_12
; %bb.19:
	ldp	w8, w2, [x21]
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_add_uevent_var
	cbnz	x0, LBB0_12
LBB0_20:
	cbz	x20, LBB0_23
; %bb.21:
	ldr	w2, [x20, #4]
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_add_uevent_var
	cbnz	x0, LBB0_12
; %bb.22:
	ldr	w2, [x20]
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_add_uevent_var
	cbnz	x0, LBB0_12
	b	LBB0_14
LBB0_23:
	mov	w0, #0
	b	LBB0_14
LBB0_24:
	mov	x0, x20
	bl	_is_gb_svc
	cbz	x0, LBB0_26
; %bb.25:
	mov	x0, x20
	bl	_to_gb_svc
	mov	x22, #0
	mov	x21, #0
	mov	x20, #0
	ldr	x0, [x0]
	b	LBB0_11
LBB0_26:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_WARN
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"uevent for unknown greybus device \"type\"!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"BUS=%u"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"MODULE=%u"

l_.str.3:                               ; @.str.3
	.asciz	"INTERFACE=%u"

l_.str.4:                               ; @.str.4
	.asciz	"GREYBUS_ID=%08x/%08x"

l_.str.5:                               ; @.str.5
	.asciz	"BUNDLE=%u"

l_.str.6:                               ; @.str.6
	.asciz	"BUNDLE_CLASS=%02x"

	.no_dead_strip	_greybus_uevent
.subsections_via_symbols
