	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smbb_set_line_flag
_smbb_set_line_flag:                    ## @smbb_set_line_flag
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %eax
	movq	%rdi, %rbx
	movq	_IRQCHIP_STATE_LINE_LEVEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-28(%rbp), %rdx
	movl	%eax, %edi
	callq	_irq_get_irqchip_state
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	cmpl	$0, -28(%rbp)
	je	LBB0_4
## %bb.3:
	orl	%r14d, (%rbx)
	jmp	LBB0_5
LBB0_1:
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_6
LBB0_4:
	notl	%r14d
	andl	%r14d, (%rbx)
LBB0_5:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQCHIP_STATE_LINE_LEVEL,4,2   ## @IRQCHIP_STATE_LINE_LEVEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read irq line\n"

L_.str.1:                               ## @.str.1
	.asciz	"status = %03lx\n"

	.no_dead_strip	_smbb_set_line_flag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smbb_set_line_flag
_smbb_set_line_flag:                    ; @smbb_set_line_flag
	.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	x20, x2
	mov	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x9, _IRQCHIP_STATE_LINE_LEVEL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IRQCHIP_STATE_LINE_LEVEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x8
	bl	_irq_get_irqchip_state
	tbnz	w0, #31, LBB0_3
; %bb.1:
	add	x21, x19, #8
	mov	x0, x21
	bl	_mutex_lock
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_4
; %bb.2:
	ldr	w8, [x19]
	orr	w8, w8, w20
	b	LBB0_5
LBB0_3:
	ldr	w0, [x19, #4]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_6
LBB0_4:
	ldr	w8, [x19]
	bic	w8, w8, w20
LBB0_5:
	str	w8, [x19]
	mov	x0, x21
	bl	_mutex_unlock
	ldp	w2, w0, [x19]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQCHIP_STATE_LINE_LEVEL,4,2   ; @IRQCHIP_STATE_LINE_LEVEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read irq line\n"

l_.str.1:                               ; @.str.1
	.asciz	"status = %03lx\n"

	.no_dead_strip	_smbb_set_line_flag
.subsections_via_symbols
