	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smb_word_op
_smb_word_op:                           ## @smb_word_op
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	cmpl	$129, %edi
	je	LBB0_1
## %bb.2:
	cmpl	$128, %edi
	jne	LBB0_25
## %bb.3:
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	_BRA_SMB_CMD_WORD_DATA@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	_BRA_SMB_CMD_BYTE_DATA@GOTPCREL(%rip), %rax
LBB0_4:
	movswl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	movq	_HSTS@GOTPCREL(%rip), %r14
	movq	_BRA_INUSE_STS@GOTPCREL(%rip), %r13
	movq	_SMB_POLL_UDELAY@GOTPCREL(%rip), %r12
	movq	_SMBTIMEOUT@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_inb
	testl	%eax, (%r13)
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r12), %edi
	callq	_udelay
	incl	%ebx
	movl	(%r15), %eax
	cmpl	%eax, %ebx
	jbe	LBB0_5
## %bb.8:
	cmpl	%eax, %ebx
	jbe	LBB0_10
LBB0_9:
	movl	(%r14), %esi
	movl	$255, %edi
	callq	_outb
LBB0_10:
	movq	_HCNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	callq	_outb
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	andl	$254, %edi
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	orl	%ebx, %edi
	movq	_XMIT_SLVA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_outb
	movq	_HCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_outb
	movq	_HCNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_inb
	movq	_SMBUS_WRITE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_12
## %bb.11:
	movq	_HDAT0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_outb
	sarl	$8, %ebx
	movq	_HDAT1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_outb
LBB0_12:
	movq	_BRA_START@GOTPCREL(%rip), %rax
	movswl	(%rax), %edi
	addl	-60(%rbp), %edi                 ## 4-byte Folded Reload
	movq	_HCNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_outb
	movq	_BRA_HOST_BUSY@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_inb
	testl	%eax, (%rbx)
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	(%r12), %edi
	callq	_udelay
	incl	%r13d
	movl	(%r15), %eax
	cmpl	%eax, %r13d
	jbe	LBB0_13
## %bb.16:
	cmpl	%eax, %r13d
	jbe	LBB0_19
LBB0_17:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_6:
	movl	(%r15), %eax
	cmpl	%eax, %ebx
	ja	LBB0_9
	jmp	LBB0_10
LBB0_14:
	movl	(%r15), %eax
	cmpl	%eax, %r13d
	ja	LBB0_17
LBB0_19:
	movl	(%r14), %edi
	callq	_inb
	movq	_BRA_HSTS_ERR_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_21
## %bb.20:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_18:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_23:
	movl	(%r14), %esi
	movl	$255, %edi
	callq	_outb
	jmp	LBB0_24
LBB0_25:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_24:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	_SMBUS_READ@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_23
## %bb.22:
	movq	_HDAT0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_inb
	movzbl	%al, %r15d
	movq	_HDAT1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_inb
	shll	$8, %eax
	movzwl	%ax, %eax
	orl	%r15d, %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_BRA_SMB_CMD_BYTE_DATA,2,1      ## @BRA_SMB_CMD_BYTE_DATA
	.comm	_BRA_SMB_CMD_WORD_DATA,2,1      ## @BRA_SMB_CMD_WORD_DATA
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SMBTIMEOUT,4,2                 ## @SMBTIMEOUT
	.comm	_HSTS,4,2                       ## @HSTS
	.comm	_BRA_INUSE_STS,4,2              ## @BRA_INUSE_STS
	.comm	_SMB_POLL_UDELAY,4,2            ## @SMB_POLL_UDELAY
	.comm	_HCNT,4,2                       ## @HCNT
	.comm	_XMIT_SLVA,4,2                  ## @XMIT_SLVA
	.comm	_HCMD,4,2                       ## @HCMD
	.comm	_SMBUS_WRITE,4,2                ## @SMBUS_WRITE
	.comm	_HDAT0,4,2                      ## @HDAT0
	.comm	_HDAT1,4,2                      ## @HDAT1
	.comm	_BRA_START,2,1                  ## @BRA_START
	.comm	_BRA_HOST_BUSY,4,2              ## @BRA_HOST_BUSY
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_BRA_HSTS_ERR_MASK,4,2          ## @BRA_HSTS_ERR_MASK
	.comm	_EIO,4,2                        ## @EIO
	.comm	_SMBUS_READ,4,2                 ## @SMBUS_READ
	.no_dead_strip	_smb_word_op
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smb_word_op
_smb_word_op:                           ; @smb_word_op
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	cmp	w0, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w0, #128
	b.ne	LBB0_22
; %bb.2:
	str	x5, [sp, #8]                    ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _BRA_SMB_CMD_WORD_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BRA_SMB_CMD_WORD_DATA@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	str	x5, [sp, #8]                    ; 8-byte Folded Spill
Lloh2:
	adrp	x8, _BRA_SMB_CMD_BYTE_DATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BRA_SMB_CMD_BYTE_DATA@GOTPAGEOFF]
LBB0_4:
	mov	w28, #0
	ldrsh	w27, [x8]
Lloh4:
	adrp	x24, _HSTS@GOTPAGE
Lloh5:
	ldr	x24, [x24, _HSTS@GOTPAGEOFF]
Lloh6:
	adrp	x19, _BRA_INUSE_STS@GOTPAGE
Lloh7:
	ldr	x19, [x19, _BRA_INUSE_STS@GOTPAGEOFF]
Lloh8:
	adrp	x26, _SMB_POLL_UDELAY@GOTPAGE
Lloh9:
	ldr	x26, [x26, _SMB_POLL_UDELAY@GOTPAGEOFF]
Lloh10:
	adrp	x25, _SMBTIMEOUT@GOTPAGE
Lloh11:
	ldr	x25, [x25, _SMBTIMEOUT@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	bl	_inb
	ldr	w8, [x19]
	tst	w8, w0
	b.eq	LBB0_16
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x26]
	bl	_udelay
	add	w28, w28, #1
	ldr	w8, [x25]
	cmp	w28, w8
	b.ls	LBB0_5
; %bb.7:
	cmp	w28, w8
	b.ls	LBB0_9
LBB0_8:
	ldr	w1, [x24]
	mov	w0, #255
	bl	_outb
LBB0_9:
Lloh12:
	adrp	x28, _HCNT@GOTPAGE
Lloh13:
	ldr	x28, [x28, _HCNT@GOTPAGEOFF]
	ldr	w1, [x28]
	mov	w0, #0
	bl	_outb
	and	w8, w23, #0xfe
	orr	w0, w8, w20
Lloh14:
	adrp	x8, _XMIT_SLVA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _XMIT_SLVA@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_outb
Lloh17:
	adrp	x8, _HCMD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HCMD@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_outb
	ldr	w0, [x28]
	bl	_inb
Lloh20:
	adrp	x8, _SMBUS_WRITE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SMBUS_WRITE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_11
; %bb.10:
Lloh23:
	adrp	x8, _HDAT0@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HDAT0@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_outb
	asr	w0, w21, #8
Lloh26:
	adrp	x8, _HDAT1@GOTPAGE
Lloh27:
	ldr	x8, [x8, _HDAT1@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_outb
LBB0_11:
Lloh29:
	adrp	x8, _BRA_START@GOTPAGE
Lloh30:
	ldr	x8, [x8, _BRA_START@GOTPAGEOFF]
Lloh31:
	ldrsh	w8, [x8]
	add	w0, w8, w27
	ldr	w1, [x28]
	bl	_outb
	mov	w21, #0
Lloh32:
	adrp	x19, _BRA_HOST_BUSY@GOTPAGE
Lloh33:
	ldr	x19, [x19, _BRA_HOST_BUSY@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	bl	_inb
	ldr	w8, [x19]
	tst	w8, w0
	b.eq	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [x26]
	bl	_udelay
	add	w21, w21, #1
	ldr	w8, [x25]
	cmp	w21, w8
	b.ls	LBB0_12
; %bb.14:
	cmp	w21, w8
	b.ls	LBB0_18
LBB0_15:
Lloh34:
	adrp	x8, _EBUSY@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_20
LBB0_16:
	ldr	w8, [x25]
	cmp	w28, w8
	b.hi	LBB0_8
	b	LBB0_9
LBB0_17:
	ldr	w8, [x25]
	cmp	w21, w8
	b.hi	LBB0_15
LBB0_18:
	ldr	w0, [x24]
	bl	_inb
Lloh36:
	adrp	x8, _BRA_HSTS_ERR_MASK@GOTPAGE
Lloh37:
	ldr	x8, [x8, _BRA_HSTS_ERR_MASK@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_24
; %bb.19:
Lloh39:
	adrp	x8, _EIO@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_20:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_21:
	ldr	w1, [x24]
	mov	w0, #255
	bl	_outb
	b	LBB0_23
LBB0_22:
Lloh41:
	adrp	x8, _EINVAL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_23:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_24:
Lloh44:
	adrp	x8, _SMBUS_READ@GOTPAGE
Lloh45:
	ldr	x8, [x8, _SMBUS_READ@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_26
; %bb.25:
Lloh47:
	adrp	x8, _HDAT0@GOTPAGE
Lloh48:
	ldr	x8, [x8, _HDAT0@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	bl	_inb
	and	w19, w0, #0xff
Lloh50:
	adrp	x8, _HDAT1@GOTPAGE
Lloh51:
	ldr	x8, [x8, _HDAT1@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	bl	_inb
	mov	w20, #0
	bfi	w19, w0, #8, #8
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	w19, [x8]
	b	LBB0_21
LBB0_26:
	mov	w20, #0
	b	LBB0_21
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_BRA_SMB_CMD_BYTE_DATA,2,1      ; @BRA_SMB_CMD_BYTE_DATA
	.comm	_BRA_SMB_CMD_WORD_DATA,2,1      ; @BRA_SMB_CMD_WORD_DATA
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SMBTIMEOUT,4,2                 ; @SMBTIMEOUT
	.comm	_HSTS,4,2                       ; @HSTS
	.comm	_BRA_INUSE_STS,4,2              ; @BRA_INUSE_STS
	.comm	_SMB_POLL_UDELAY,4,2            ; @SMB_POLL_UDELAY
	.comm	_HCNT,4,2                       ; @HCNT
	.comm	_XMIT_SLVA,4,2                  ; @XMIT_SLVA
	.comm	_HCMD,4,2                       ; @HCMD
	.comm	_SMBUS_WRITE,4,2                ; @SMBUS_WRITE
	.comm	_HDAT0,4,2                      ; @HDAT0
	.comm	_HDAT1,4,2                      ; @HDAT1
	.comm	_BRA_START,2,1                  ; @BRA_START
	.comm	_BRA_HOST_BUSY,4,2              ; @BRA_HOST_BUSY
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_BRA_HSTS_ERR_MASK,4,2          ; @BRA_HSTS_ERR_MASK
	.comm	_EIO,4,2                        ; @EIO
	.comm	_SMBUS_READ,4,2                 ; @SMBUS_READ
	.no_dead_strip	_smb_word_op
.subsections_via_symbols
